<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="deptId" name="deptId" th:value="${dept.deptId}"
								class="hidden">
							<input id="Ttype"  th:value="${dept.deptType}" type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label ">上级部门：</label>
								<div class="col-sm-8">
								<input th:value="${parentDeptName}"
										class="form-control" type="text" readonly="true" />
									<input class="form-control hidden" type="text" id="parentId" name="parentId" th:value="${dept.parentId}">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">部门名称：</label>
								<div class="col-sm-8">
									<input id="name" name="name" th:value="${dept.name}"
										class="form-control" type="text">
								</div>
							</div>
							<!-- <div class="form-group">
								<label class="col-sm-3 control-label">部门类型：</label>
								<div class="col-sm-8">
									<select data-placeholder="--选择类别--" name="deptType" id="deptType"
										class="form-control chosen-select" tabindex="2">
										<option value="">-- 选择类别 --</option>
										<option th:each="deptTypes : ${deptTypes}" th:value="${deptTypes.value}" th:text="${deptTypes.name}" th:if="${deptTypes.remarks ==checked}" th:selected="selected"></option>
									</select>
								</div>
							</div> -->
							<div class="form-group">
								<label class="col-sm-3 control-label">部门类型：</label>
								<div class="col-sm-8">
									<select data-placeholder="--选择类别--" name="deptType" id="deptType"
										class="form-control chosen-select" tabindex="2">
										<option value="">-- 选择类别 --</option>
										<option value="1" th:selected="${dept.deptType == 1}">区域</option>
										<option value="2" th:selected="${dept.deptType == 2}">部门</option>
									</select>
								</div>
							</div>
							
							
							<div class="form-group">
								<label class="col-sm-3 control-label">排序：</label>
								<div class="col-sm-8">
									<input id="orderNum" name="orderNum" th:value="${dept.orderNum}"
										class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">状态：</label>
								<!-- <div class="col-sm-8">
								 <input id="delFlag" name="delFlag" th:value="${dept.delFlag}"
										class="form-control" type="text"> 
									
								</div> -->
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{dept.delFlag}" name="delFlag" value="0" /> 禁用
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{dept.delFlag}" name="delFlag" value="1" /> 正常
									</label> 
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<div th:include="include::footer"></div>
	<script th:inline="javascript"> var ctx = [[@{/}]] ; </script>
	<script type="text/javascript" src="/js/app/system/dept/edit.js" th:src="@{/js/app/system/dept/edit.js}">
	</script>
</body>
</html>
